package com.power.sifa.respond.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.respond.model.Apl_plaintiff;
import com.power.sifa.respond.model.pageInfo.Apl_plaintiffPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  原告 Feign
 */
public interface IApl_plaintiffFeign {

    /**
     * 原告分页列表
     */
    @PostMapping("/apl_plaintiff/list")
    ResponseDTO list(@RequestBody Apl_plaintiffPageInfo apl_plaintiffPageInfo);

    /**
    * 查看原告
    */
    @GetMapping("/apl_plaintiff/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除原告
    */
    @PostMapping("/apl_plaintiff/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看原告 复合主键使用
    // */
    //@PostMapping("/apl_plaintiff/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_plaintiff.Apl_plaintiffPK pk);

    /**
     * 修改或保存原告
     */
    @PostMapping("/apl_plaintiff/save")
    ResponseDTO save(@RequestBody Apl_plaintiff apl_plaintiff);

    ///**
    // * 删除原告 复合主键使用
    // */
    //@PostMapping("/apl_plaintiff/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_plaintiff.Apl_plaintiffPK pk);

    /**
     * 批量删除原告
     */
    @PostMapping("/apl_plaintiff/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_plaintiff/output")
    void output(HttpServletResponse response, @RequestBody Apl_plaintiffPageInfo apl_plaintiffPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_plaintiff/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_plaintiff/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;

}
